package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * IamApi
 * 
 * @author PG(Auto Generator)
 * @version V1.0
 */
public class IamApi extends IamApiKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /** 父ID [32,0] Not NULL */
    protected String parentId;
    /** 接口名称 [50,0] Not NULL */
    protected String apiName;
    /** 请求地址 [50,0] Not NULL */
    protected String apiUrl;
    /** 创建人 [20,0] */
    protected String createUser;
    /** 修改人 [20,0] */
    protected String updateUser;
    /** 创建时间 [19,0] */
    protected Date createTime;
    /** 修改时间 [19,0] */
    protected Date updateTime;
    /** 逻辑删除 [1,0] Not NULL */
    protected String isDeleted;

    public IamApi() {
        super();
    }

    public IamApiKey primaryKey() {
        return new IamApiKey(id);
    }

    /** 取值 <== 父ID [32,0], Not NULL */
    public String getParentId() {
        return parentId;
    }

    /** 赋值 ==> 父ID [32,0], Not NULL */
    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    /** 取值 <== 接口名称 [50,0], Not NULL */
    public String getApiName() {
        return apiName;
    }

    /** 赋值 ==> 接口名称 [50,0], Not NULL */
    public void setApiName(String apiName) {
        this.apiName = apiName == null ? null : apiName.trim();
    }

    /** 取值 <== 请求地址 [50,0], Not NULL */
    public String getApiUrl() {
        return apiUrl;
    }

    /** 赋值 ==> 请求地址 [50,0], Not NULL */
    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl == null ? null : apiUrl.trim();
    }

    /** 取值 <== 创建人 [20,0] */
    public String getCreateUser() {
        return createUser;
    }

    /** 赋值 ==> 创建人 [20,0] */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /** 取值 <== 修改人 [20,0] */
    public String getUpdateUser() {
        return updateUser;
    }

    /** 赋值 ==> 修改人 [20,0] */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /** 取值 <== 创建时间 [19,0] */
    public Date getCreateTime() {
        return createTime;
    }

    /** 赋值 ==> 创建时间 [19,0] */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 取值 <== 修改时间 [19,0] */
    public Date getUpdateTime() {
        return updateTime;
    }

    /** 赋值 ==> 修改时间 [19,0] */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 取值 <== 逻辑删除 [1,0], Not NULL */
    public String getIsDeleted() {
        return isDeleted;
    }

    /** 赋值 ==> 逻辑删除 [1,0], Not NULL */
    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted == null ? null : isDeleted.trim();
    }

    /** 浅克隆 */
    @Override
    public IamApi clone() {
        IamApi cloneIamApi = null;
        try {
            cloneIamApi = (IamApi) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamApi;
    }

    @Override
    public String toString() {
        return "IamApi [id = " + id + ", parentId = " + parentId + ", apiName = " + apiName + ", apiUrl = " + apiUrl
                + ", createUser = " + createUser + ", updateUser = " + updateUser + ", createTime = " + createTime
                + ", updateTime = " + updateTime + ", isDeleted = " + isDeleted + "]";
    }
}